package com.ys.entity.amazonorder;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="kjecp_report.dbo.TCO_YearCountry", catalog="Id")
public class TcoYearCountry extends BaseEntity<TcoYearCountry> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MarketplaceId", nameJava="marketplaceId", typeDataBase="varchar")
	private String marketplaceId;
	@YsField(nameDataBase="TimeYear", nameJava="timeYear", typeDataBase="char")
	private String timeYear;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="bigint")
	private Long num;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcoYearCountry setId(Long id) {
		this.id = id;
		return this;
	}
	public String getMarketplaceId() {
		return marketplaceId;
	}
	public TcoYearCountry setMarketplaceId(String marketplaceId) {
		this.marketplaceId = marketplaceId;
		return this;
	}
	public String getTimeYear() {
		return timeYear;
	}
	public TcoYearCountry setTimeYear(String timeYear) {
		this.timeYear = timeYear;
		return this;
	}
	public Long getNum() {
		return num;
	}
	public TcoYearCountry setNum(Long num) {
		this.num = num;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public TcoYearCountry setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcoYearCountry setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcoYearCountry setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcoYearCountry setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcoYearCountry tcoYearCountry(
		String marketplaceId,
		String timeYear,
		Long num,
		BigDecimal amount,
		Integer status
			) {
		TcoYearCountry entity = new TcoYearCountry();
		entity.setMarketplaceId(marketplaceId);
		entity.setTimeYear(timeYear);
		entity.setNum(num);
		entity.setAmount(amount);
		entity.setStatus(status);
		return entity;
	}
}